package se.webbzon.boltzmann.game.sequence.condition;

import se.webbzon.boltzmann.game.sequence.Sequence;
import se.webbzon.boltzmann.object.cinema.AbstractCinemaTerminator;

public class IsCinema extends ConditionSequenceNode {
	
	/*============================================================
	Constructors
	============================================================*/

	public IsCinema(Sequence sequence) {
		super(sequence, null, null);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public boolean isTrue() {
		return !getSequence().getWorld().findInstances(AbstractCinemaTerminator.class).isEmpty();
	}

}
